package com.li.client.entities;

public enum SectionName {
	Borrow("borrow", "Borrow"),
	Return("return", "Return"),
	AllBookInfo("all book info", "All book info"),
//	NewBookEnroll("New Book Enroll", "New Book Enroll"),
	BatchEnrollment("Batch Enrollment", "Batch Enrollment");
	
	private String label;
	private String name;
	
	private SectionName(String name, String lable) {
		this.name = name;
		this.label = lable;
	}
	
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static SectionName getValusAs(String name) {
		SectionName[] values = SectionName.values();
		for (SectionName sectionName : values) {
			if (sectionName.getName().equalsIgnoreCase(name)) {
				return sectionName;
			}
		}
		return null;
	}
}
